package biz.ezcom.design.pattern.flyweight;

public class Client {
	public static void main(String[] args) {
		int type = 22;
		
		FlyweightFactory factory = new FlyweightFactory();
		Flyweight fx = factory.getFlyweight("x");
		fx.operation(--type);
		
		Flyweight fy = factory.getFlyweight("y");
		fy.operation(--type);
		
		Flyweight fz = factory.getFlyweight("z");
		fz.operation(--type);
		
		UnsharedFlyweight uf = new UnsharedFlyweight();
		uf.operation(--type);
		
	}
}
